#include <iostream>
#include <iomanip>

using namespace std;

int main_0017(void)
{
    int choice;
    const string fruits[] = {
        "apples",
        "pears",
        "oranges",
        "grapes"
    };
    const float prices[] = {
        3.00, 2.50, 4.10, 10.20
    };

    for (int i = 0; i < 4; ++i) {
        cout << "[" << i + 1 << "] " << fruits[i] << endl;
    }
    cout << "[0] " << "Exit" << endl;

    //    while (true) {
    cin >> choice;
    if (choice == 0) {
        return 0;
    }

    cout << "price=";
    if (choice > 4) {
        cout << 0;
    } else {
        cout << fixed << setprecision(1) << prices[choice - 1];
    }
    cout << endl;
    //    }

    return 0;
}
